﻿#include <iostream>

using namespace std;

int main() {
	int x, y;
	cout << "计算两个数x和y的实数平均值\n";
	cout << "x的值："; cin >> x;
	cout << "y的值："; cin >> y;
	// double ave = (x + y) / 2.0;
	// double ave = (double)(x + y) / 2;
	// double ave = double(x + y) / 2;
	double ave = static_cast<double>(x + y) / 2;
	cout << "x和y的平均值：" << ave;
	cin.get();
	cin.get();
}